package com.siwei.mes.mapper.erp;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.erp.Contractrelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * (Contractrelation)表数据库访问层
 *
 * @author linzi
 * @since 2024-09-24 20:07:56
 */
public interface ContractrelationMapper extends BaseMapper<Contractrelation> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<Contractrelation> getList(Contractrelation entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    Contractrelation loadById(@Param("id") Long id);

    /**
     * 根据任务单集合查询工程信息
     *
     * @param frwdList
     * @return
     */
    List<Contractrelation> selectByFrwdList(@Param("frwdList") Set<Integer> frwdList);
}
